package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.JobMessage;
import com.googlecode.flealancemarket.service.commands.SaveJobMessage;
import com.googlecode.flealancemarket.service.facades.JobFacade;

public class SaveJobMessageImpl implements SaveJobMessage {

    private JobFacade facade;
    private JobMessage jobMessage;
    private long freelancerId;

    public JobMessage execute() {
        return getFacade().saveJobMessage(jobMessage, freelancerId);
    }

    public JobMessage getJobMessage() {
        return jobMessage;
    }

    public void setJobMessage(JobMessage jobMessage) {
        this.jobMessage = jobMessage;
    }

    public long getFreelancerId() {
        return freelancerId;
    }

    public void setFreelancerId(long id) {
        freelancerId = id;
    }

    public JobFacade getFacade() {
        return facade;
    }

    public void setFacade(JobFacade facade) {
        this.facade = facade;
    }

}
